home *** CD-ROM | disk | FTP | other *** search
Winamp Compiled Maki Script | 2003-11-16 | 9.1 KB | 303 lines |
- /* Note: a decompiler is no invitation to steal code.
- Please respect the the copyright */
-
- #include "std.mi"
- Global ConfigAttribute ConfigAttribute3;
- Global ConfigAttribute ConfigAttribute4;
- Global ConfigAttribute ConfigAttribute5;
- Global ConfigAttribute ConfigAttribute6;
- Global ConfigAttribute ConfigAttribute7;
- Global ConfigAttribute ConfigAttribute8;
- Global ConfigAttribute ConfigAttribute9;
- Global ConfigAttribute ConfigAttribute10;
- Global ConfigAttribute ConfigAttribute11;
- Global ConfigAttribute ConfigAttribute12;
- Global ConfigAttribute ConfigAttribute13;
- Global ConfigAttribute ConfigAttribute14;
- Global ConfigAttribute ConfigAttribute15;
- Global ConfigAttribute ConfigAttribute16;
- Global ConfigAttribute ConfigAttribute17;
- Global ConfigAttribute ConfigAttribute18;
- Global ConfigAttribute ConfigAttribute19;
- Global ConfigAttribute ConfigAttribute20;
- Global ConfigAttribute ConfigAttribute21;
- Global ConfigAttribute ConfigAttribute22;
- Global ConfigAttribute ConfigAttribute23;
- Global ConfigAttribute ConfigAttribute24;
- Global ConfigAttribute ConfigAttribute25;
- Global ConfigAttribute ConfigAttribute26;
- Global ConfigAttribute ConfigAttribute27;
- Global ConfigAttribute ConfigAttribute28;
- Global ConfigAttribute ConfigAttribute29;
- Global Group Group103;
- Global Group Group104;
- Global Group Group105;
- Global Group Group106;
- Global Group Group107;
- Global Group Group108;
- Global Group Group109;
- Global Group Group110;
- Global Group Group111;
- Global Button Button112;
- Global Button Button113;
- Global Button Button114;
- Global Layout Layout115;
- Global Layout Layout116;
- Global Layer Layer117;
- Global Text Text118;
- Global Button Button119;
-
- Function func0();
- Function func2021(Int 0);
- Function func3352();
-
- func0()
- {
- ConfigAttribute ConfigAttribute71;
- ConfigItem ConfigItem47;
- ConfigAttribute ConfigAttribute60;
- ConfigAttribute ConfigAttribute66;
- ConfigItem ConfigItem55;
- ConfigItem ConfigItem38;
- ConfigItem ConfigItem44;
- ConfigAttribute ConfigAttribute64;
- ConfigAttribute ConfigAttribute65;
- ConfigAttribute ConfigAttribute61;
- ConfigAttribute ConfigAttribute62;
- ConfigItem ConfigItem41;
- ConfigItem ConfigItem35;
- ConfigItem ConfigItem57;
- ConfigItem ConfigItem50;
- ConfigAttribute ConfigAttribute59;
- ConfigItem ConfigItem32;
- ConfigItem ConfigItem53;
- ConfigItem32 = Config.newItem(( "Winamp\ Modern"), ( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigItem35 = Config.newItem(( "Drawers"), ( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigItem38 = Config.newItem(( "Menus"), ( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigItem41 = Config.newItem(( "Main\ Windowshade\ Mode"), ( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigItem44 = Config.newItem(( "Vis\ Buttons"), ( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigItem47 = Config.newItem(( "Notifications"), ( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
- ConfigItem50 = Config.newItem(( "Songticker"), ( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
- ConfigItem53 = Config.newItem(( "Hidden"), ( "\{E9C2D926\-53CA\-400f\-9A4D\-85E31755A4CF\}"));
- ConfigItem55 = Config.getItem(( "\{1828D28F\-78DD\-4647\-8532\-EBA504B8FC04\}"));
- ConfigItem57 = Config.getItem(( "\{6559CA61\-7EB2\-4415\-A8A9\-A2AEEF762B7F\}"));
- ConfigAttribute59 = ConfigItem55.newAttribute(( "Winamp\ Modern"), ( ""));
- ConfigAttribute59.setData(( "\{26E26319\-AECA\-4433\-B8F1\-F4A5BF2A9ED5\}"));
- ConfigAttribute60 = ConfigItem32.newAttribute(( "Drawers"), ( ""));
- ConfigAttribute60.setData(( "\{C338B30F\-2A04\-4b10\-871F\-4E9D52D62806\}"));
- ConfigAttribute61 = ConfigItem32.newAttribute(( "Menus"), ( ""));
- ConfigAttribute61.setData(( "\{12ED320E\-6813\-45ac\-9F8E\-78EE5B2B5F6D\}"));
- ConfigAttribute62 = ConfigItem32.newAttribute(( "Main\ Windowshade\ Mode"), ( ""));
- ConfigAttribute62.setData(( "\{58F07E21\-AE96\-4899\-B7BC\-3640B40029FB\}"));
- ConfigAttribute64 = ConfigItem32.newAttribute(( "Vis\ Shortcut\ Button"), ( ""));
- ConfigAttribute64.setData(( "\{D70E3ABF\-D2FF\-4b82\-9A70\-4B5DF1A5D942\}"));
- ConfigAttribute65 = ConfigItem32.newAttribute(( "Notifications"), ( ""));
- ConfigAttribute65.setData(( "\{1AB968B3\-8687\-4a35\-BA70\-FCF6D92FB57F\}"));
- ConfigAttribute66 = ConfigItem32.newAttribute(( "Songticker"), ( ""));
- ConfigAttribute66.setData(( "\{7061FDE0\-0E12\-11D8\-BB41\-0050DA442EF3\}"));
- ConfigAttribute3 = ConfigItem35.newAttribute(( "Animate\ Video\/Vis\ Drawer\ \(disabled\ if\ opacity\ \<\ 100\%\)"), ( "0"));
- ConfigAttribute4 = ConfigItem35.newAttribute(( "Animate\ Config\ Drawer"), ( "0"));
- ConfigAttribute71 = ConfigItem35.newAttribute(( "sep1"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute7 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ top"), ( "0"));
- ConfigAttribute8 = ConfigItem35.newAttribute(( "Open\ Video\/Vis\ from\ the\ bottom"), ( "1"));
- ConfigAttribute9 = ConfigItem35.newAttribute(( "Bypass\ setting\ to\ keep\ in\ screen"), ( "1"));
- if(( ConfigAttribute7.getData() == ( "1"))) {
- ConfigAttribute7.onDataChanged();
- } else {
- ConfigAttribute8.onDataChanged();
- }
- ConfigAttribute11 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Main\ Window"), ( "1"));
- ConfigAttribute12 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Playlist\ Editor"), ( "1"));
- ConfigAttribute13 = ConfigItem38.newAttribute(( "Show\ Menus\ in\ Media\ Library"), ( "1"));
- ConfigAttribute71 = ConfigItem32.newAttribute(( "sep1"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute5 = ConfigItem32.newAttribute(( "Detach\ Vis\ Window"), ( "0"));
- ConfigAttribute6 = ConfigItem32.newAttribute(( "Detach\ Video\ Window"), ( "0"));
- ConfigAttribute10 = ConfigItem57.newAttribute(( "Equalizer\ Alt\+G"), ( "0"));
- ConfigAttribute71 = ConfigItem32.newAttribute(( "sep2"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute17 = ConfigItem32.newAttribute(( "Enable\ Beat\ Visualization"), ( "1"));
- ConfigAttribute14 = ConfigItem41.newAttribute(( "Link\ Position\ and\ Width"), ( "1"));
- ConfigAttribute15 = ConfigItem41.newAttribute(( "Link\ Position\,\ Unlink\ Width"), ( "0"));
- ConfigAttribute16 = ConfigItem41.newAttribute(( "Unlink\ Position\ and\ Width"), ( "0"));
- ConfigAttribute19 = ConfigItem44.newAttribute(( "Open\ Context\ Menu"), ( "1"));
- ConfigAttribute18 = ConfigItem44.newAttribute(( "Open\ Configuration"), ( "0"));
- ConfigAttribute22 = ConfigItem47.newAttribute(( "Show\ always"), ( "0"));
- ConfigAttribute21 = ConfigItem47.newAttribute(( "Show\ with\ windowshade\ and\ when\ minimized"), ( "0"));
- ConfigAttribute20 = ConfigItem47.newAttribute(( "Show\ only\ when\ minimized"), ( "0"));
- ConfigAttribute23 = ConfigItem47.newAttribute(( "Never\ show"), ( "1"));
- ConfigAttribute71 = ConfigItem47.newAttribute(( "sep1"), ( ""));
- ConfigAttribute71.setData(( "\-"));
- ConfigAttribute27 = ConfigItem47.newAttribute(( "Disable\ in\ fullscreen"), ( "1"));
- ConfigAttribute24 = ConfigItem53.newAttribute(( "Notifications\ fade\ in\ time"), ( "1000"));
- ConfigAttribute25 = ConfigItem53.newAttribute(( "Notifications\ fade\ out\ time"), ( "5000"));
- ConfigAttribute26 = ConfigItem53.newAttribute(( "Notifications\ display\ time"), ( "2000"));
- ConfigAttribute28 = ConfigItem50.newAttribute(( "Enable\ Songticker\ scrolling"), ( "1"));
- ConfigAttribute29 = ConfigItem50.newAttribute(( "Disable\ Songticker\ scrolling"), ( "0"));
- return Null;
- }
-
- System.onScriptLoaded()
- {
- func0();
- Group103 = System.getScriptGroup();
- Layout115 = Group103.getParentLayout();
- Layout116 = Group103.getParentLayout().getContainer().getLayout(( "normal"));
- Group104 = Group103.findObject(( "shadeX1"));
- Group105 = Group103.findObject(( "shadeX2"));
- Group106 = Group103.findObject(( "shadeX3"));
- Button114 = Group103.findObject(( "shadeeq"));
- Group107 = Group103.findObject(( "shadedisplay"));
- Group108 = Group103.findObject(( "shadedisplay2"));
- Group109 = Group103.findObject(( "shadetimer"));
- Group110 = Group103.findObject(( "shadeticker"));
- Group111 = Group103.findObject(( "shadevis"));
- Button112 = Group103.findObject(( "shade\.expand"));
- Button113 = Group103.findObject(( "shade\.reduce"));
- Button119 = Group103.findObject(( "shadect"));
- Text118 = Group103.findObject(( "SongtickerShade"));
- Layer117 = Group103.findObject(( "volumebarShade"));
- Layer117.setXmlParam(( "w"), System.integerToString(( ( ( System.getVolume() / 255) * 40) + 5)));
- func3352();
- return Null;
- }
-
- Group103.onResize(int x, int y, int w, int h)
- {
- func2021(w);
- return Null;
- }
-
- Button114.onLeftClick()
- {
- ConfigAttribute10.setData(( "1"));
- return Null;
- }
-
- func2021(Int 0)
- {
- Int Int150;
- Int Int147;
- Int147 = System.getPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 0);
- if(Int147) {
- Button112.show();
- Button113.hide();
- } else {
- Button112.hide();
- Button113.show();
- }
- Group104.hide();
- Group105.hide();
- Group106.hide();
- Group107.hide();
- Group108.hide();
- Group109.hide();
- Group110.hide();
- Group111.hide();
- if(( Int143 < 400)) {
- Int150 = ( Int143 - 356);
- Group107.setXmlParam(( "w"), System.integerToString(Int150));
- Group107.show();
- Group109.show();
- if(( Int143 < 420)) {
- Group110.show();
- Group110.setXmlParam(( "w"), System.integerToString(Int150));
- if(( Int143 < 560)) {
- Group107.hide();
- Group108.setXmlParam(( "w"), System.integerToString(( Int150 - 45)));
- Group108.show();
- Group110.setXmlParam(( "w"), System.integerToString(( Int150 - 56)));
- if(Int147) {
- Group104.setXmlParam(( "x"), ( "\-100"));
- Group104.show();
- if(( Int143 < 583)) {
- Group108.setXmlParam(( "w"), System.integerToString(( Int150 - 68)));
- Group110.setXmlParam(( "w"), System.integerToString(( Int150 - 79)));
- Group104.setXmlParam(( "x"), ( "\-123"));
- Group105.setXmlParam(( "x"), ( "\-80"));
- Group105.show();
- if(( Int143 < 642)) {
- Group108.setXmlParam(( "w"), System.integerToString(( Int150 - 127)));
- Group110.setXmlParam(( "w"), System.integerToString(( Int150 - 138)));
- Group104.setXmlParam(( "x"), ( "\-182"));
- Group105.setXmlParam(( "x"), ( "\-139"));
- Group106.setXmlParam(( "x"), ( "\-116"));
- Group106.show();
- if(( Int143 < 660)) {
- Group111.setXmlParam(( "x"), System.integerToString(( - 257)));
- Group111.show();
- Group110.setXmlParam(( "w"), System.integerToString(( Int150 - 194)));
- }
- }
- }
- } else {
- Group108.setXmlParam(( "w"), System.integerToString(Int150));
- Group111.setXmlParam(( "x"), System.integerToString(( - 130)));
- Group111.show();
- Group110.setXmlParam(( "w"), System.integerToString(( Int150 - 66)));
- }
- }
- }
- }
- return Null;
- }
-
- System.onKeyDown(String key)
- {
- if(( ( ( System.Strleft(key, 4) == ( "ctrl")) && ( System.strsearch(key, ( "\+w")) != ( - 1))) && ( Layout115.isActive() || Layout116.isActive()))) {
- if(Layout115.isVisible()) {
- Layout115.getContainer().switchToLayout(( "normal"));
- } else {
- Layout115.getContainer().switchToLayout(( "shade"));
- }
- complete;
- }
- return Null;
- }
-
- Button112.onLeftClick()
- {
- System.setPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 0);
- func2021(Layout115.getGuiW());
- return Null;
- }
-
- Button113.onLeftClick()
- {
- System.setPrivateInt(( "winamp5"), ( "ShowShadeButtons"), 1);
- func2021(Layout115.getGuiW());
- return Null;
- }
-
- System.onVolumeChanged(int newvol)
- {
- Layer117.setXmlParam(( "w"), System.integerToString(( ( ( newvol / 255) * 40) + 5)));
- return Null;
- }
-
- ConfigAttribute28.onDataChanged()
- {
- func3352();
- return Null;
- }
-
- func3352()
- {
- if(( ConfigAttribute28.getData() == ( "1"))) {
- Text118.setXmlParam(( "ticker"), ( "1"));
- } else {
- Text118.setXmlParam(( "ticker"), ( "0"));
- }
- return Null;
- }
-
- Button119.onRightButtonDown(int x, int y)
- {
- System.triggerAction(Button119, ( "ThemesSlotsMenu"), ( ""));
- complete;
- return Null;
- }
-
-
-